package com.ruoyi.framework.web.service;

import com.ruoyi.domain.SysMatClassificationType;
import com.ruoyi.domain.SysMatType;
import com.ruoyi.service.ISysMatClassificationTypeService;
import com.ruoyi.service.ISysMatDataTypeService;
import com.ruoyi.service.ISysMatDetailsTypeService;
import com.ruoyi.service.ISysMatTypeService;
import com.ruoyi.system.domain.SysDictData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 材料字典数据读取
 */
@Service("mate")
public class MateDictService {

    @Autowired
    ISysMatTypeService sysMatTypeService;
    @Autowired
    ISysMatClassificationTypeService sysMatClassificationTypeService;
    @Autowired
    ISysMatDataTypeService sysMatDataTypeService;
    @Autowired
    ISysMatDetailsTypeService sysMatDetailsTypeService;


    /**
     * 根据材料字典类型查询数据信息
     */
    public List<SysMatClassificationType> getMatType(String matType){
        return sysMatTypeService.selectSysMatTypeByType(matType);
    }

}
